﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Hyt.Web.Mvc.Controls
{
    public static class ButtonExtensions
    {
        public static MvcHtmlString SubmitButton(this HtmlHelper helper, string text, string ico="save")
        {
            return new MvcHtmlString(Buttons.SubmitButton(text, ico));
        }

        public static MvcHtmlString NavtabButton(this HtmlHelper helper, string url, string text, string ico = "", string args = "")
        {
            return new MvcHtmlString(Buttons.NavtabButton(url, text, ico, args));
        }

        public static MvcHtmlString DialogButton(this HtmlHelper helper, string url, string text,  string ico = "", string args = "")
        {
            return new MvcHtmlString(Buttons.DialogButton(url, text, ico, args));
        }

        public static MvcHtmlString AjaxpostformButton(this HtmlHelper helper, string text, string ico = "", string args = "")
        {
            return new MvcHtmlString(Buttons.AjaxpostformButton( text, ico, args));
        }

        public static MvcHtmlString CalljsButton(this HtmlHelper helper, string text, string ico = "", string args = "")
        {
            return new MvcHtmlString(Buttons.CalljsButton(text, ico, args));
        }

    }
}
